

class Constraint(object):
    def __init__(self, id_archive, id_snapshot, type, object, version):
        self.id_archive = id_archive
        self.id_snapshot = id_snapshot
        self.type = type
        self.object = object
        self.cstraint = version
                            
    def __repr__(self):
        return "<Constraint('%s','%s', '%s')>" % (self.id_archive, self.type, self.object)